.code-container {
	margin: 1.5rem 0;
	position: relative;

	.gatsby-highlight code {
		display: none;
	}

	.btn-collapse {
		.icon-collapse--expanded {
			display: none;
		}
	}
}

.code-container.expanded {
	code {
		display: block;
	}

	.btn-collapse {
		.icon-collapse--collapsed {
			display: none;
		}

		.icon-collapse--expanded {
			display: inline-block;
		}
	}
}

.docs .code-sample-info.clay-p {
	align-items: center;
	display: flex;
	margin-top: 0;
	padding: 8px;
	position: absolute;
	z-index: 1;

	&.hide {
		display: none;
	}
}

.btn-copy,
.btn-collapse {
	animation: fadeIn 0.5s cubic-bezier(0.3, 0, 0.3, 1) 0s 1 forwards;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	height: 32px;
	padding: 0;
	position: absolute;
	top: 5px;
	transition: $btn-transition;
	width: 32px;
	z-index: 9;

	&:hover {
		background: rgba(255, 255, 255, 0.8);
	}

	&:focus {
		box-shadow: $component-focus-box-shadow;
	}

	.lexicon-icon {
		pointer-events: none;
		vertical-align: baseline;
	}
}

.btn-copy {
	right: 46px;
}

.btn-collapse {
	right: 8px;
}

.tooltip.bottom {
	position: absolute;
	top: 0;
}
